<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>

<?php echo $layout_for_common;?>

<script type="text/javascript">
	$(document).ready(function(){

	});
</script>

</head>
<body>
	<div id="wrap">
		
		<div class="nav">
			<a href="<?php echo admin_url('group/insert');?>" class="button">添加分组</a>
		</div>

		<div class="tabs">
			<ul>
				<li><a href="#tabs-1">分组列表</a></li>
			</ul>

			<div id="tabs-1">
				<table class="list" cellspacing="0">
					<tr>
						<th width="10%">ID</th>
						<th>名称</th>
						<th width="20%">操作</th>
					</tr>
					<?php
						foreach ($list as $row)
						{
					?>
					<tr class="t_center">
						<td><?php echo $row['id'];?></td>
						<td><?php echo $row['name'];?></td>
						<td>
							<a href="<?php echo admin_url('group/update', array('id' => $row['id']));?>">修改</a>
							<a href="<?php echo admin_url('group/delete', array('id' => $row['id']));?>" onclick="return false;" class="delete">删除</a>
						</td>
					</tr>
					<?php
						}
					?>
				</table>
			</div>
		</div>
		
		<div class="page">
			共条<?php echo $page->rows();?>记录
			<?php echo $page->first();?>
			<?php echo $page->index();?>
			<?php echo $page->last();?>
		</div>
		
	</div>
</body>
</html>